package com.xiaohong.account.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;

import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY;

@Schema(name = "AccountTbl")
public class AccountTbl implements Serializable{

	@TableId(value = "id",type = IdType.AUTO)
	@Schema(description = "主键ID",accessMode = READ_ONLY,required = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING)
	private Integer id;//主键ID

	@Schema(description = "用户ID")
	@TableField("user_id")
	private String userId;//

	@Schema(description = "金额")
	@TableField("money")
	private Integer money;//



	//get方法
	public Integer getId() {
		return id;
	}

	//set方法
	public void setId(Integer id) {
		this.id = id;
	}
	//get方法
	public String getUserId() {
		return userId;
	}

	//set方法
	public void setUserId(String userId) {
		this.userId = userId;
	}
	//get方法
	public Integer getMoney() {
		return money;
	}

	//set方法
	public void setMoney(Integer money) {
		this.money = money;
	}


}
